package cn.machen.www.fashion.services;

import cn.machen.www.fashion.dao.ProductDao;
import cn.machen.www.fashion.pojo.Product;

import java.util.List;

public class ProductService {
    private ProductDao productDao = new ProductDao();

    /*查询所有商品*/
    public List<Product> findAll(){
        return  productDao.findAll();
    }
    /*根据id查找商品*/
    public List<Product> findByCid(String cid){
        return productDao.findByCid(cid);
    }

    public Product findSingleProduct(String pid){

        return productDao.findSingleProduct(pid);
    }



}
